Overview
DefInit.bat is the initialization script that prepares iPool Apollo before any simulation is run. Running it correctly ensures that all required databases are linked and available. This page explains what DefInit.bat does, why initialization is necessary, and when to run it.
- Required setup: iPool Apollo installed, working directory configured, Defaults.csv pointing to the correct paths
- What this page covers: the purpose of DefInit.bat, the databases it initializes, and the conditions under which it must be re-run
- Exercise: locate DefInit.bat in your working directory and confirm it is present
Reviewing DefInit.bat
DefInit.bat is the initialization batch file used to prepare iPool Apollo before simulations are performed. Rather than running the simulator directly from a cold start, DefInit establishes the core database connections that iPool Apollo requires for every simulation.
- What is DefInit.bat?
- Why is Initialization Necessary?
- When Should DefInit Be Run?
What is DefInit.bat?
DefInit.bat initializes the five core databases iPool Apollo relies on:
- System Database — stores core market objects such as sites, units, links, and system configuration
- Time Period Database — defines market calendars, dispatch intervals, weekdays, holidays, and simulation timing
- Bid Database — stores bidding information used during dispatch simulations
- Flow Database — contains transmission network and power flow information
- Scenario Database — stores user-created simulation scenarios
DefInit.bat also configures the dispatch resolution: either hourly or five-minute dispatch, depending on the selected database set.
Exercise
Give it a try and do this exercise:
Step 1 of 3
Locate DefInit.bat in your working directory